import request from '@/utils/request'

// 查询戒毒宣传列表
export function listJdxc(query) {
  return request({
    url: '/duty/jdxc/list',
    method: 'get',
    params: query
  })
}

export function queryXc(query) {
  return request({
    url: '/duty/jdxc/query',
    method: 'post',
    data: query
  })
}

// 查询戒毒宣传详细
export function getJdxc(jdxcId) {
  return request({
    url: '/duty/jdxc/' + jdxcId,
    method: 'get'
  })
}

// 新增戒毒宣传
export function addJdxc(data) {
  return request({
    url: '/duty/jdxc',
    method: 'post',
    data: data
  })
}

// 修改戒毒宣传
export function updateJdxc(data) {
  return request({
    url: '/duty/jdxc',
    method: 'put',
    data: data
  })
}

// 删除戒毒宣传
export function delJdxc(jdxcId) {
  return request({
    url: '/duty/jdxc/' + jdxcId,
    method: 'delete'
  })
}
